package com.cowin.inf.controller;

import com.cowin.base.result.Result;
import com.cowin.base.result.ResultGenerator;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Copyright (C), 1998-2019, 奇瑞信息
 *
 * @author : 于超
 * @Date: 2019/9/20 10:12
 * @Description: 心跳接口
 */
@Slf4j
@Api(value = "HeartBeatController", description = "心跳接口控制器", tags = "HeartBeatController", consumes = "application/json")
@RequestMapping("inf/mes/heartbeat")
@RestController
public class HeartBeatController {

    @ApiOperation(value = "Mes心跳接口 返回mes系统时间")
    @GetMapping
    public Result mesHeartBeat() {
        return ResultGenerator.genSuccessResult(System.currentTimeMillis()+"8089");
    }
}
